package study03;

/**
* @author GZQ
* @Date 2023/11/5
 */

// while 循环输出1,3,5,7,9，...100
public class While3 {
    public static void main(String[] args) {
        int num = 0;
        int result;
        while (num < 100) {
            if (num % 2 == 0) {
                result = num + 1;
                System.out.print(result + " ");
            }
            num++;
        }
        System.out.println(100);
    }
}